-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DriverOptions.java #1256
Conversation
🚀 Custom chrome options added. 🐞 Fixed a issue with workingDir that mistakenly create new directories when userDataDir was defined.
userDataDir = (String) options.get("userDataDir"); | ||
disableNotifications = get("disableNotifications", false); | ||
userAgent = get("userAgent", null); | ||
String place = get("userDataDir", null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted user to provide null
in which case chrome would use system defaults
and not providing would default to workingDir
will this work the same way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving workingDir like that, will create countless 'chrome_1234567890' folders inside target with zero content.
Beacause Command class will check if it exists and create one if not.
This way, workingDir and userDataDir are the same.
public final boolean disableNotifications; | ||
public final String userAgent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can ignore that!
disableNotifications = get("disableNotifications", false); | ||
userAgent = get("userAgent", null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this too!
🚀 Custom chrome options added.
🐞 Fixed a issue with workingDir that mistakenly create new directories when userDataDir was defined.
Description
Thanks for contributing this Pull Request. Make sure that you submit this Pull Request against the
develop
branch of this repository, add a brief description, and tag the relevant issue(s) and PR(s) below.